package amdocs.jet.pm;

import java.text.SimpleDateFormat;

public class Constants 
{
	public static final String EMPTY_STRING = "";
	public static final String SPACE_STRING = " ";
	public static final String DEFAULT_DATE_FORMAT_PATTERN = "dd/MM/yyyy";
	public static final String ISRAEL_BANK_LAST_UPDATE_FORMAT_PATTERN = "yyyy-MM-dd";
	public static final String ISRAEL_BANK_REQUESTED_DATE_FORMAT_PATTERN = "yyyyMMdd";
		
	// url(s)
	public static String TODAY_CURRENCY_URL_CN = "http://www.bankisrael.gov.il/currency.xml";
	public static String PREVIOUS_CURRENCY_URL_CN = "http://www.bankisrael.gov.il/heb.shearim/currprev.php";
	public static String CURRENCY_BY_DATE_URL_CN = "http://www.bankisrael.gov.il/heb.shearim/currency.php?rdate=";
	
	// Dialogs identifiers
	public static final int DATE_DIALOG_ID = 0;
	
	// names of the XML tags
	public static final String CURRENCY = "CURRENCY";
	public static final String CURRENCIES = "CURRENCIES";
	public static final String NAME = "NAME";
	public static final String UNIT = "UNIT";
	public static final String CURRENCYCODE = "CURRENCYCODE";
	public static final String COUNTRY = "COUNTRY";
	public static final String RATE = "RATE";
	public static final String CHANGE = "CHANGE";
	public static final String LAST_UPDATE = "LAST_UPDATE";
	public static final String CURRENCY_BASKET_CODE = "SAL";
	
	// in case of error, below tags will be retrieved
	public static final String ERROR1 = "ERROR1";
	public static final String ERROR2 = "ERROR2";
	public static final String ERROR3 = "ERROR3";
	public static final String REQUESTED_DATE = "REQUESTED_DATE";
	
	// tab names
	public static final String TAB_NAME_SAFE_NOTE = "safenote";
	public static final String TAB_NAME_CURRENCIES = "currencies";
	public static final String TAB_NAME_ABOUT = "about";
	
	// safe note attributes
	public static final String SAFE_NOTE_ID = "SAFE_NOTE_ID";
	public static final String SAFE_NOTE_NAME = "SAFE_NOTE_NAME";
	public static final String SAFE_NOTE_ICON = "SAFE_NOTE_ICON";
	public static final String SAFE_NOTE_BODY = "SAFE_NOTE_BODY";
	public static final String SAFE_NOTE_CATEGORY = "SAFE_NOTE_CATEGORY";
	
	// safe note menu actions
	public static final String KEY_SAFE_NOTE = "KEY_SAFE_NOTE";
	public static final String KEY_CATEGORIES = "KEY_CATEGORIES";
	public static final String KEY_ACTION = "KEY_ACTION";
	public static final String KEY_MESSAGE = "KEY_MESSAGE";
	
	// menu item action indexes
	public static final int SAFE_NOTE_EDIT_MENU_ITEM_INDEX = 1;
	public static final int SAFE_NOTE_SAVE_MENU_ITEM_INDEX = 2;
	public static final int SAFE_NOTE_DELETE_MENU_ITEM_INDEX = 3;
	
	// url to app engine server api
	public static String APP_ENGINE_SERVER_URL = "http://vogash.appspot.com/safenote";
	
	public static String ENCRYPTION_KEY = "0123456789ABCDEF";
}